﻿//文件指定编译编码UTF-8
#pragma execution_character_set("utf-8")

/**
*    @file:    main.cpp
*    @brief:
*    @author:  sanshi522@163.com
*    @date:    2025-05-27  10:18
*/
#include <QCoreApplication>
#include "qfilestorageclient.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QFileStorageClient fileStorageClient;
    fileStorageClient.setServiceAddress("http://localhost:4000/api/file");
    fileStorageClient.pushFile("C:\\Users\\Administrator\\Downloads\\Windows 计算器 Installer.exe","测试\\计算器 Installer.exe");

    fileStorageClient.pullFile("D:\\计算器 Installer.exe","测试\\计算器 Installer.exe");
    return a.exec();
}
